//
//  XSChartReadme.h
//  Test
//
//  Created by xueshan1 on 2018/12/18.
//  Copyright © 2018 xueshan1. All rights reserved.
/*
 
 折线 & 柱状图
     XSChartView *chartView = [[XSChartView alloc]initWithFrame:CGRectMake(0, 30, kWidth, 300)];
     [self.view addSubview:chartView];
     chartView.backgroundColor = [UIColor whiteColor];
     chartView.layer.borderWidth = 0.5;
     chartView.layer.borderColor = [UIColor lightGrayColor].CGColor;
 
     XSChartViewModel *model1 = [XSChartViewModel modelWithName:@"one" color:[UIColor redColor] dataSource:[self randomArrayWithCount:10]];
     XSChartViewModel *model2 = [XSChartViewModel modelWithName:@"two" color:[UIColor greenColor] dataSource:[self randomArrayWithCount:10]];
     XSChartViewModel *model3 = [XSChartViewModel modelWithName:@"two" color:[UIColor greenColor] dataSource:[self randomArrayWithCount:10]];
 
     chartView.chartType = XSChartViewType_Pillar;
 //    [chartView drawChartViewWithDataSource:@[model1 ]];
 
     [chartView drawChartViewWithDataSource:@[model1,model2,model3 ]];
 
 
 // 环形 & 饼状图
 通过 type 区分
 XSPieView *chartView = [[XSPieView alloc]initWithFrame:CGRectMake(0, 30, kWidth, 300) viewType:XSPieViewType_Pie];
 [self.view addSubview:chartView];
 chartView.backgroundColor = [UIColor whiteColor];
 chartView.layer.borderWidth = 0.5;
 chartView.layer.borderColor = [UIColor lightGrayColor].CGColor;
 
 XSPieViewModel *model1 = [XSPieViewModel modelWithName:@"one" color:[UIColor redColor] value:200];
 XSPieViewModel *model2 = [XSPieViewModel modelWithName:@"two" color:[UIColor greenColor] value:300];
 XSPieViewModel *model3 = [XSPieViewModel modelWithName:@"three" color:[UIColor blueColor] value:500];
 XSPieViewModel *model4 = [XSPieViewModel modelWithName:@"four" color:[UIColor cyanColor] value:1000];
 [chartView drawPieViewWithDataSource:@[model1,model2,model3,model4]];
 

 
 
 
 */

#ifndef XSChartReadme_h
#define XSChartReadme_h


#endif /* XSChartReadme_h */
